package com.fanjia.demologin.util;

import lombok.*;

/**
 * @author: csf
 * @file: Code.java
 * @time: 2020\4\23 0023 14:29
 * @desc:
 */

@AllArgsConstructor
@Getter
public enum Code {
    ERROR(400, "失败"),
    SESSION_ERROR(401, "会话过期，请重新登录"),
    DATA_ERROR(402, "请求的数据格式不符!"),
    NOT_FOUND(404, "未找到该资源!"),
    SERVER_BUSY(503, "服务器正忙，请稍后再试!"),
    INTERNAL_SERVER_ERROR(500, "服务器内部错误，请稍后再试!"),
    SUCCESS(200, "成功");

    private final Integer code;
    private final String text;

}
